home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
design1b.zip
/
DEMO.PAS
next >
Wrap
Pascal/Delphi Source File
|
1997-07-19
|
583b
|
33 lines
Uses Design, Crt;
Var Block: Pointer;
l : ListRec;
i : Integer;
Result: integer;
Begin
PaintScreen ('░',1,1,80,25,112);
OpenBox (10, 5, 70, 7, 27, Horz);
WriteBetween ('This is a test',11,68,6,31);
OpenBox (10, 10, 70, 20, 27, Vert);
l[1]:='Option 1';
l[2]:='Option 2';
l[3]:='Option 3';
l[4]:='Option 4';
l[5]:='Exit';
{ Repeat
until ListBox (L, 12, 12, 68, 17, 5,112, 27)=5;}
for i:=1 to 5 do
WriteXy(l[i],12,11+i,27);
repeat
Result:=Menu (12, 12, 68, 16, 112);
until (Result=5) or (Result=0);
end.